package d1208.Ljs2.Ljs13;

import java.io.FileInputStream;
import java.util.Map;
import java.util.Properties;

public class Demo {
    public static void main(String[] args) throws Exception{
        Properties properties = new Properties();
        FileInputStream fileInputStream = new FileInputStream("E:\\代码\\代码练习和作业\\Zuoye12月6号\\src\\Ljs2\\Ljs13\\t1.properties");
        properties.load(fileInputStream);
        fileInputStream.close();
        for (Map.Entry<Object, Object> entry : properties.entrySet()) {
            Class c = Class.forName(entry.getKey()+"");
            c.getDeclaredMethod("run").invoke(c.newInstance());
        }
    }
}
